<template>
  <div class="list_empty">  
    <div class="empty_wrapper">
      <img v-if="imgIcon==''" class="img_empty" src="~assets/images/study/empty.png" alt="">
       <img v-else-if="imgIcon=='emp'" class="img_empty" src="~assets/images/study/emp.png" alt="">
      <div class="empty_msg">
        {{msg}}
      </div>
      <div class="empty_btn_wrapper">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "list_empty",
  props: {
    msg: {
      type: String,
      default: "还没有内容哦~"
    },
     imgIcon: {
      //自定义显示图片样式
      type: String,
      default: ""
    }
  },
  methods: {
  }
};
</script>
<style lang="less">
.list_empty {
  text-align: center;
  margin-top: 0.2rem;

  .empty_wrapper {
    margin-top: 0.4rem;
    overflow: hidden;

    .img_empty {
      width: 1.5rem;

      &.notebook {
        width: 1rem;
      }
    }

    .empty_msg {
      margin: 0.3rem 0;
      color: #777;
      letter-spacing: 1px;
    }

    .empty_btn_wrapper {
      margin-top: 0.4rem;
      a.a_empty_btn {
        display: inline-block;
        height: 0.4rem;
        line-height: 0.4rem;
        border-radius: 0.22rem;
        text-align: center;
        border: 2px solid #01d9ca;
        color: #01d9ca;
        width: 1.8rem;
      }
    }
  }
}
</style>

